package book;

public class MainTest {

	public static void main(String[] args) {
		
		System.out.println(Thread.currentThread().getId());
		System.out.println(Thread.currentThread().getThreadGroup());
		System.out.println(Thread.currentThread().getState());
		System.out.println(Thread.currentThread().getName());
		StackTraceElement[] stacks = Thread.currentThread().getStackTrace();
		for(StackTraceElement element : stacks){
			
			System.out.println(element.getFileName() + "---" + element.getLineNumber() + "---" + element.getMethodName());
		}
	}
}
